package com.wen;

import com.wen.moudle.Account;
import com.wen.task.baseTasks.*;
import com.wen.task.customTask.*;
import com.wen.utils.AccountManager;
import com.wen.utils.MyPanel;

import java.io.IOException;

public class Main {
    public static void main(String[] args) throws IOException {

//        // 运行
        try {
            // 获取要登录的账号
            Account account = AccountManager.preLogin();

            MyPanel panel = new MyPanel(account);
            // 注册各种功能的脚本
//            panel.register(BaseTask.class);  // 一条龙功能，卡级的小伙伴不需要，去掉
            panel.register(VariationEquipmentTask.class);
            panel.register(EarnMoneyTask.class);
            panel.register(AutoDebrisArenaTask.class);
            panel.register(AutoExperienceArenaTask.class); // 经验竞技场
            panel.register(AutoNpcDebrisArenaTask.class);
            panel.register(AutoNpcExperienceArenaTask.class); // npc经验竞技场
            panel.register(LadderTask.class);
            panel.register(FightBabyTask.class);
            panel.register(UsePill.class);
            panel.register(UseGem.class);
            panel.register(CustomFavoriteProperties.class);
            panel.register(DeleteCurrentAccountTask.class);
            panel.register(ClearAllAccountTask.class);
            panel.register(HelpTask.class);
            panel.run();
        } catch (Exception e){
            e.printStackTrace();
            System.out.println("异常退出");
        }
    }
}
